package com.wisezone.demo0214;

public class Single {
    private static Single single;
    private Single(){

    }
    public static Single getInstance(){
        if (single==null){
            synchronized (Single.class){
                if(single==null)
                {
                    single = new Single();
                    return single;
                }
            }

        }
        return single;
    }
}
